home *** CD-ROM | disk | FTP | other *** search
- Path: news.crystalball.com!news
- From: Larry Weiss <lfw@oc.com>
- Newsgroups: comp.lang.c
- Subject: Re: CONVERTING INTEGER TO ASCII??????
- Date: Fri, 15 Mar 1996 17:13:03 -0600
- Organization: crystalball.com
- Message-ID: <3149F97F.1A71@oc.com>
- References: <4i17r9$2kn@maltese.eag.unisysgsg.com> <4i1cvg$1cg@solutions.solon.com> <4ic5kp$d0g@athos.cc.bellcore.com>
- NNTP-Posting-Host: external.oc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Sandeep V. Tamhankar wrote:
- >
- > Another way to convert integer to ASCII is to add char '0' to your
- > integer. Like so:
- >
- > int asc;
- > asc= known_int + '0';
- >
- > This way, you don't have to load any function and there is no overhead.
- >
-
- Sandeep, think about your suggestion some. How many integers will it
- work for? How many integers do you hope it to work for?
-
- What will you end up with? What does one usually want to have after
- converting an arbitrary integer to ASCII?
-